package top.yifengxiner.blockchain.service;

import top.yifengxiner.blockchain.pojo.entity.Educated;
import top.yifengxiner.blockchain.pojo.vo.BRegisterBody;
import top.yifengxiner.blockchain.pojo.vo.EducatedVo;
import top.yifengxiner.blockchain.pojo.vo.IdVo;
import top.yifengxiner.common.core.pojo.AjaxResult;

import java.util.List;

/**
 * @author ：baixiao
 * @date ：Created in 2021/5/12 9:21
 * @description：受教育者服务
 * @modified By：
 * @version: 0.0.1$
 */
public interface EducatedService
{
    /**
     * 通过自己Id查询受教育者信息
     * @return
     */
    public Educated getEducatedById(Long id);

    /**
     * 通过教育机构ID查询教育者列表
     */
    public List<Educated> getListById(Long educatorId);

    /**
     * 注册受教育者
     * @param registerBody
     * @return
     */
    public int setEducated(BRegisterBody registerBody);

    /**
     * 修改个人信息
     * @param educatedVo
     * @return
     */
    public AjaxResult updateEducated(EducatedVo educatedVo);

    /**
     *
     * @return
     */
    public Educated getEducatedByName(String name);
}
